﻿@using 期末.Models.Database;
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="~/css/index.css" />
</head>
<body>
    <div class="content">



        <div id="main">
            <ul id="main_ul">
                @{
                    var list2 = ViewData["news"] as List<Xinwen>;
                    foreach (var item in list2)

                    {
                        <li>
                            <a href="/detail.html?newsid=@item.Newid">
                                <img src="@item.Img">
                                <p>@item.Tit</p>
                                <p>
                                    @item.Con
                                </p>
                                <p>发布时间:@item.Data</p>
                                <p>文章来源:@item.Come</p>
                            </a>
                        </li>
}
                }

            </ul>

        </div>

        

        <div class="paging">
            <ul class="pagination">
                <li><a href="javascript:void(0)">«</a></li>
                <li><a class="active" href="javascript:void(0)">1</a></li>
                <li><a href="javascript:void(0)">2</a></li>
                <li><a href="javascript:void(0)">3</a></li>
                <li><a href="javascript:void(0)">4</a></li>
                <li><a href="javascript:void(0)">5</a></li>
                <li><a href="javascript:void(0)">6</a></li>
                <li><a href="javascript:void(0)">7</a></li>
                <li><a href="javascript:void(0)">»</a></li>
            </ul>
        </div>

    </div>
</body>
</html>
